<template>
  <div>
    <el-table :data="memberList" border style="width: 100%">
      <el-table-column prop="uid" label="用户编号" width="180">
      </el-table-column>
      <el-table-column prop="nickname" label="昵称" width="180">
      </el-table-column>
      <el-table-column prop="phone" label="手机号" width="180">
      </el-table-column>

      <el-table-column label="状态">
        <template slot-scope="item">
          <div>
            <!-- <span v-if="item.row.status == 1">启用</span>
            <span v-else>禁用</span> -->
            <div>
              <el-tag v-if="item.row.status == 1" type="Brand Color">应用</el-tag>
              <el-tag v-else type="danger">禁用</el-tag>
            </div>
          </div>
        </template>
      </el-table-column>
      <el-table-column label="操作">
        <template slot-scope="item">
          <div>
            <el-button
              circle
              type="primary"
              icon="el-icon-edit"
              size="mini"
              @click="edit(item.row.uid)"
            ></el-button>
          </div>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { mapGetters, mapActions } from "vuex";

export default {
  data() {
    return {};
  },
  computed: {
    ...mapGetters({
      memberList: "member/getMember",
    }),
  },
  methods: {
    edit(uid) {
      console.log("111");
      this.$emit("edit", uid);
    },
  },
};
</script>

<style scoped>
</style>
